package com.two.service.user.feign;

import com.two.common.util.CommonResult;
import com.two.service.user.vo.BohuiVo;
import com.two.service.user.vo.RestaurantVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "two-orderSystem-service-caipin")
public interface CaipinOpenFeign {
    @PostMapping("/caipin/caipin/shen")
    public CommonResult shen(@RequestParam Integer currentPage, @RequestParam Integer pageSize,@RequestParam String token, @RequestBody RestaurantVo restaurantVo);
    @PostMapping("/caipin/caipin/pass")
    public CommonResult pass(@RequestParam String token,@RequestParam String id);
    @PostMapping("/caipin/caipin/bohui")
    public CommonResult bohui(@RequestBody BohuiVo bohuiVo, @RequestParam String mid, @RequestParam String token);

}
